﻿@{
    List<Taobao.EF.ProductInfo> list = new List<Taobao.EF.ProductInfo>();
    if (ViewBag.data != null)
    {
        list = (List<Taobao.EF.ProductInfo>)ViewBag.data;
    }
}
<div class="manager" style="margin-left:10px; margin-bottom:10px;">

    <span>全选</span><input type="checkbox" class="check" name="selectAll" id="selectAll" /><input type="button" class="search" name="btnScanSel" value="浏览" id="btnScanSel" /><input type="button" class="search" name="btndel" value="删除" id="btndel" /><input type="button" class="search" name="addpro" value="添加收藏" id="addpro" />
</div>
@{
    if (list != null)
    {
        for (int index = 0; index < list.Count; index++)
        {
            var item = list[index];
            <div class="list-item">
                <div class="div-img">
                    <img src=@item.picUrl>
                </div>
                <div class="operatrion">
                    <input type="checkbox" name="check" value=@item.url style="height:1.5em;width:1.5em" />
                    <input type="button" value="浏览" class="search" onclick="Scan(this)">

                </div>
                <div class="list-content">
                    <p>@item.title</p>

                    <p>￥@item.price</p>
                </div>

            </div>
        }
    }
}

<div id="div_scan" class="div_scan" style="display:none">
    <table style ="margin:auto;">
        <tr><td> 商品总数: </td><td><span><input class="search_input" style="width:100px;" disabled="disabled" type="text" id="scan_total" /></span><td></tr>
        <tr>
            <td>
                浏览次数:
            </td>
            <td>
                <span><input class="search_input" style="width:100px"  type="text" id="addscan"  /></span>
            <td>
        </tr>
        <tr><td></td><td> <label id="notice" class="error_notice"></label></td></tr>
    </table>

</div>


